<?php

class ActionIndex extends BaseAction
{
    public function run()
    {
    	$oCriteria = new CDbCriteria();
    	$oCriteria->addColumnCondition(array('user_id' => Yii::app()->user->id));
    	$oCriteria->order = 'date_created DESC';
    	
    	$this->template->aTariffPlans = TariffPlan::model()->findAll($oCriteria);
    	$this->template->aTariffPlansLabels = TariffPlan::model()->attributeLabels();
    }
}